import request from '@/utils/request'

// 查询我的任务列表
export function listMyTask(query) {
  return request({
    url: '/gs/myTask/list',
    method: 'get',
    params: query
  })
}

// 查询我的任务详细
export function getMyTask(id) {
  return request({
    url: '/gs/myTask/' + id,
    method: 'get'
  })
}

// 新增我的任务
export function addMyTask(data) {
  return request({
    url: '/gs/myTask',
    method: 'post',
    data: data
  })
}

// 修改我的任务
export function updateMyTask(data) {
  return request({
    url: '/gs/myTask',
    method: 'put',
    data: data
  })
}

// 删除我的任务
export function delMyTask(id) {
  return request({
    url: '/gs/myTask/' + id,
    method: 'delete'
  })
}
// 接收我的任务
export function receiveMyTask(id) {
  return request({
    url: '/gs/myTask/receiveMyTask/' + id,
    method: 'post'
  })
}
